{* $Id: news_details.tpl,v 1.12.2.1 2007/08/31 12:48:22 max Exp $ *}

{if $mode eq "modify"}
{assign var="selector_disabled" value="1"}
{else}
{assign var="selector_disabled" value="0"}
{/if}

<form action="news.php" method="post">
<input type="hidden" name="mode" value="{$mode}" />
<input type="hidden" name="list[listid]" value="{$list.listid}" />

<table cellpadding="3" cellspacing="1" width="100%">

<tr>
<td width="30%" class="FormButton">{$lng.lbl_language}:</td>
	<td width="70%">{include file="main/language_selector_short.tpl" selector_disabled=$selector_disabled script="news.php?mode=create&"}</td>
	<td width="10">&nbsp;</td>
</tr>

<tr>
	<td class="FormButton">{$lng.lbl_news_list_short_name}: <font class="Star">*</font></td>
	<td><input type="text" name="list[name]" value="{$list.name|escape}" size="50" style="width:90%" /></td>
	<td>{if $error.name}<font class="AdminTitle">&lt;&lt;{else}&nbsp;{/if}</td>
</tr>

<tr>
	<td class="FormButton">{$lng.lbl_list_description}: <font class="Star">*</font></td>
	<td><textarea name="list[descr]" cols="70" rows="10" style="width:90%">{$list.descr}</textarea></td>
	<td>{if $error.descr}<font class="AdminTitle">&lt;&lt;{else}&nbsp;{/if}</td>
</tr>

<tr>
<td class="FormButton">{$lng.lbl_active}:</td>
	<td>
	<select name="list[avail]">
	<option value="Y"{if $list.avail eq "Y"} selected="selected"{/if}>{$lng.lbl_yes}</option>
	<option value="N"{if $list.avail eq "N"} selected="selected"{/if}>{$lng.lbl_no}</option>
	</select>
	</td>
	<td>&nbsp;</td>
</tr>

<tr>
	<td class="FormButton">{$lng.lbl_news_list_available}:</td>
	<td>
	<select name="list[subscribe]">
	<option value="Y"{if $list.subscribe eq "Y"} selected="selected"{/if}>{$lng.lbl_yes}</option>
	<option value="N"{if $list.subscribe eq "N"} selected="selected"{/if}>{$lng.lbl_no}</option>
	</select>
	</td>
	<td>&nbsp;</td>
</tr>

<tr>
	<td class="FormButton">{$lng.lbl_news_list_show_messages}:</td>
	<td>
	<select name="list[show_as_news]">
	<option value="Y"{if $list.show_as_news eq "Y"} selected="selected"{/if}>{$lng.lbl_yes}</option>
	<option value="N"{if $list.show_as_news eq "N"} selected="selected"{/if}>{$lng.lbl_no}</option>
	</select>
	</td>
	<td>&nbsp;</td>
</tr>

<tr>
	<td>&nbsp;</td>
	<td colspan="2"><br />
	<input type="submit" value=" {$lng.lbl_save} " />
	</td>
</tr>

</table>
</form>
